home *** CD-ROM | disk | FTP | other *** search
Wrap
card_2974.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>2974</id> <filler1>0</filler1> <bitmap>BMAP_3163.pbm</bitmap> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2618</owner> <link rel="stylesheet" type="text/css" href="stylesheet_3787.css" /> <part> <id>1</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <true /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>69</left> <top>68</top> <right>434</right> <bottom>252</bottom> </rect> <style>scrolling</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Geneva</font> <textSize>9</textSize> <textStyle>plain</textStyle> <textHeight>12</textHeight> <name>Text</name> <script></script> </part> <part> <id>2</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>174</left> <top>281</top> <right>343</right> <bottom>311</bottom> </rect> <style>roundrect</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>SelectFile</name> <script>on mouseUp answer SelectFile("STAK,TEXT") end mouseUp </script> </part> <content> <layer>card</layer> <id>1</id> <text><span class="style1"> </span><span class="style2">SelectFile 1.1</span><span class="style1"> </span><span class="style3">by Frédéric RINALDI</span><span class="style1"> </span><span class="style4">DESCRIPTION</span><span class="style1"> SelectFile provides a dialog allowing to choose a file (SFGetFile). Not anymore required with HC2.0 which includes this feature. </span><span class="style4">SYNTAX</span><span class="style1"> SelectFile([<type1…[,type4]>][,<prompt>][,<default dir>]) </span><span class="style4">PARAMETERS</span><span class="style1"> </span><span class="style2"><type1…[,type4]></span><span class="style1"> is a 1 to 4 items string for filtering the displayed files according to their type. </span><span class="style2"><prompt></span><span class="style1"> is the message appearing in the dialog. </span><span class="style2"><default dir></span><span class="style1"> is a pathname allowing to give the default folder where the dialog opens to. Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output). </span><span class="style4">USING</span><span class="style1"> The XFCN returns the full pathame of choosen file. An empty string is returned if the user clicked on Cancel. Although working fine with both System 6 and System 7, FullSFPack is better suited for the latter, due in part to alias handling. </span><span class="style4">ERRORS</span><span class="style1"> If an error occurs, SelectFile can return : "Error : Missing DLOG/DITL resource(s)" "Error : Not a folder" "Error : Alias file not supported" "Error : Volume not found" "Error : Bad Name" "Error : Folder not found" "Error : AppleShare insufficient privileges" </span><span class="style4">HISTORY</span><span class="style1"> </span><span class="style2">1.1</span><span class="style1"> </span><span class="style2">03/11/92</span><span class="style1"> • Added default dir parameter </span><span class="style2"> 1.0</span><span class="style1"> </span><span class="style2">07/17/92</span><span class="style1"> • First public release -------------------------------------------------------------------- </span><span class="style5"> All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : </span><span class="style1"> </span><span class="style3"> SelectFile XFCN, © Frederic Rinaldi, 1989…1993. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: </span><span class="style1"> </span><span class="style6">AppleLink</span><span class="style3">: RINALDI1 </span><span class="style6">CalvaCom</span><span class="style3"> : FR10 </span><span class="style6">Compuserve</span><span class="style3"> : 71170,2111 </span><span class="style6"> Internet</span><span class="style3"> : RINALDI1@APPLELINK@APPLE.COM</span></text> </content> <name></name> <script></script> </card>